package com.itheima.reggie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.reggie.domain.Employee;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface EmployeeMapper extends BaseMapper<Employee> {
    //根据用户名进行查询用户信息
    Employee findByUserName(String username);

    //根据名字进行查询
    List<Employee> findByName(String name);

    //保存
    void addEmployee(Employee employee);

    Employee findById(Long id);

    void updateEmployee(Employee employee);

}
